package com.ltkj.system.api;

import com.ltkj.common.core.constant.ServiceNameConstants;
import com.ltkj.common.core.domain.R;
import com.ltkj.system.api.domain.WxUser;
import com.ltkj.system.api.factory.RemoteWxUserFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 微信用户服务
 * 
 * @author liupf
 */
@FeignClient(contextId = "remoteWxUserService", value = ServiceNameConstants.BASEPLATFORM_SERVICE, fallbackFactory = RemoteWxUserFallbackFactory.class)
public interface RemoteWxUserService
{
    /**
     * 通过用户id查询openid
     *
     * @param userId 用户id
     * @return 结果
     */
    @GetMapping("/wxUser/info")
    R<WxUser> getUserInfo(@RequestParam("userId") Long userId);


}
